From: Alexander Larsson Date: Tue, 8 Mar 2011 09:04:49 +0000 (+0100) Subject: overview: hidden workspace thumbnails should not stick out on other monitor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8618 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=09f2028d6acc11b6b1fbbab81fd2ee0924b20dc4;p=gnome-shell.git overview: hidden workspace thumbnails should not stick out on other monitor We clip the entire WorkspacesDisplay to its allocation to avoid things like the WorkspaceThumbnails sticking out of the primary monitor into another monitor. https://bugzilla.gnome.org/show_bug.cgi?id=609258 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index d288c2c14..b37417950 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -562,6 +562,7 @@ WorkspacesDisplay.prototype = { this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth)); this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight)); this.actor.connect('allocate', Lang.bind(this, this._allocate)); + this.actor.set_clip_to_allocation(true); let controls = new St.Bin({ style_class: 'workspace-controls', request_mode: Clutter.RequestMode.WIDTH_FOR_HEIGHT,